import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const VISUALIZATION: AppRouteRecordRaw = {
  path: '/produce',
  name: 'menu.produce',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.produce',
    requiresAuth: true,
    icon: 'icon-apps',
    order: 1,
  },
  children: [
    {
      path: 'temperature',
      name: 'temperature',
      component: () => import('@/views/producte/temperature/index.vue'),
      meta: {
        locale: 'menu.visualization.temperature',
        requiresAuth: true,
        roles: ['admin','produce'],
      },
    },
    {
      path: 'attendance',
      name: 'attendance',
      component: () => import('@/views/producte/attendance/index.vue'),
      meta: {
        locale: 'menu.visualization.attendance',
        requiresAuth: true,
        roles: ['admin','produce'],
      },
    },
    {
      path: 'wineproduction',
      name: 'wineproduction',
      component: () => import('@/views/producte/production/index.vue'),
      meta: {
        locale: 'menu.visualization.wineproduction',
        requiresAuth: true,
        roles: ['admin','produce'],
      },
    },
    {
      path: 'winetype',
      name: 'winetype',
      component: () => import('@/views/producte/winetype/index.vue'),
      meta: {
        locale: 'menu.visualization.winetype',
        requiresAuth: true,
        roles: ['admin','produce'],
      },
    },
  ],
};

export default VISUALIZATION;
